<template>
  <div class="infoContent" :style="{ height: infoHeight + 'px' }">
    <list-scroll class="box" :speed="0">
      <div class="list">
        <div
          class="infoItem1"
          v-for="(item, index) in infoList"
          :key="index"
          @click="toantiLocalizationdetail"
        >
          <div class="_num">
            {{ index + 1 }}
          </div>
          <div class="_cont">
            {{ item.exceptionContent }}
            <!-- --{{ item.exceptionTarget }}--{{ item.exceptionType }} -->
          </div>
        </div>
      </div>
    </list-scroll>
  </div>
</template>

<script>
import { getExceptionList } from "@/api/system/info";
import ListScroll from "@/components/DtSrcollCopy2";

export default {
  components: { ListScroll },
  data() {
    return {
      infoHeight: 300,
      infoList: [],
    };
  },
  mounted() {
    getExceptionList({ pageSize: 20 }).then((res) => {
      if (res.code == 200) {
        this.infoList = res.rows;
      }
    });
  },
  methods: {
    // toantiLocalizationdetail() {
    //   this.$router.push("/userindexdetails");
    // },
  },
};
</script>

<style scoped>
.infoContent {
  padding-top: 4px !important;
  padding-bottom: 48px;
  box-sizing: border-box;
  overflow: hidden;
  height: 45vh !important;
}
.box{
  height: 45vh;
}
</style>
